Behavioral testing under intracranial monitoring